package org.swingplus.core.bean;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.util.Map;

public class MetaDataType {

    //实例
    private Object instance;
    //实例类上注解
    private Annotation[] annotationsType;
    //成员变
    private Field[] fields;

    //扫描后变量上有注解的map
    private Map<Field, Annotation[]> map;


    public Map<Field, Annotation[]> getMap() {
        return map;
    }


    public void setMap(Map<Field, Annotation[]> map) {
        this.map = map;
    }


    public Object getInstance() {
        return instance;
    }


    public void setInstance(Object instance) {
        this.instance = instance;
    }

    public MetaDataType() {
    }

    public MetaDataType(Map<Field, Annotation[]> map, Object instance) {
        this.map = map;
        this.instance = instance;
    }

    public Annotation[] getAnnotationsType() {
        return annotationsType;
    }

    public void setAnnotationsType(Annotation[] annotationsType) {
        this.annotationsType = annotationsType;
    }

    public Field[] getFields() {
        return fields;
    }

    public void setFields(Field[] fields) {
        this.fields = fields;
    }
}
